﻿namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 流水线
    /// </summary>
    public class VAssemblyLine : BaseVModel
    {
        private string _lineName = string.Empty;
        private string _workshopName;
        private string _workshopCode;

        #region Public Property

        ///<Summary>
        /// 车间代码
        ///</Summary>
        public string WorkshopCode
        {
            get { return string.IsNullOrWhiteSpace(_workshopCode) ? string.Empty : _workshopCode; }
            set { _workshopCode = value; }
        }

        ///<Summary>
        /// 所属车间名称
        ///</Summary>
        public string WorkshopName
        {
            get { return string.IsNullOrWhiteSpace(_workshopName) ? string.Empty : _workshopName; }
            set { _workshopName = value; }
        }

        ///<Summary>
        /// 流水线名称
        ///</Summary>
        public string LineName
        {
            get { return string.IsNullOrWhiteSpace(_lineName) ? string.Empty : _lineName; }
            set { _lineName = value; }
        }

        ///<Summary>
        /// 状态
        ///</Summary>
        public Enum.CommonStatus Status { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string CNStatus
        {
            get { return !System.Enum.IsDefined(typeof(Enum.CommonStatus), Status) ? string.Empty : EnumConvert.ToDesc(Status); }
        }
        #endregion
    }
}
